package com.stx.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.stx.dao.AdminDao;
import com.stx.dao.impl.AdminDaoImpl;
import com.stx.domain.Admin;
import com.stx.service.AdminService;

@Service
public class AdminServiceImpl implements AdminService {
	@Resource
	private AdminDao ad;
	
	@Override
	public Admin adminLogin(String name, String pwd) {
		return ad.adminLogin(name, pwd);
	}

	@Override
	public void modifyAdminPwd(String name, String newpassword) {
		ad.modifyAdminPwd(name, newpassword);	
	}

}
